package com.rayo.accesscontrollercopy.model.network.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.rayo.accesscontrollercopy.config.NetworkConfig;
import com.rayo.accesscontrollercopy.model.db.bean.DmuTimeData;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by yanghaojie on 2017/2/10.
 */

public class UpdateLockApi {

    private String site;
    private String lockid;
    private String groupid;
    private String name;
    private String regcode;
    private String syscode;
    private List<DmuTimeData> timezone;
    private int mode;

    public String getSupportkey() {
        return supportkey;
    }

    public void setSupportkey(String supportkey) {
        this.supportkey = supportkey;
    }

    private String supportkey;
    @JSONField(format = NetworkConfig.JSON_DATE_TIME)
    private Date time;

    public UpdateLockApi() {
        this.site = "";
        this.lockid = "";
        this.groupid = "";
        this.name = "";
        this.regcode = "";
        this.syscode = "";
        this.timezone = new ArrayList<>();
        this.mode = 0;
        this.time = new Date();
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getLockid() {
        return lockid;
    }

    public void setLockid(String lockid) {
        this.lockid = lockid;
    }

    public String getGroupid() {
        return groupid;
    }

    public void setGroupid(String groupid) {
        this.groupid = groupid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRegcode() {
        return regcode;
    }

    public void setRegcode(String regcode) {
        this.regcode = regcode;
    }

    public String getSyscode() {
        return syscode;
    }

    public void setSyscode(String syscode) {
        this.syscode = syscode;
    }

    public List<DmuTimeData> getTimezone() {
        return timezone;
    }

    public void setTimezone(List<DmuTimeData> timezone) {
        this.timezone = timezone;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
